﻿using System;
using System.IO;

using Mono.Options;

using octalforty.Componento.Core.ApplicationServices;

namespace octalforty.Componento.Commands
{
    [Command("add-repository", Aliases = "ar")]
    public class AddRepositoryCommand : ICommand
    {
        public MetadirectoryManagerService MetadirectoryManager
        { get; set; }

        public OptionSet GetOptionSet(object options)
        {
            throw new NotImplementedException();
        }

        public void Execute(string[] args)
        {
            MetadirectoryManager.AddRepository(Directory.GetCurrentDirectory(), true, args[0], args[1]);
        }
    }
}
